import {Component} from "react";
import React from "react";
import {Router, NavLink} from "react-router-dom";

class Nav extends Component {
    render() {
        return (
            <div className="nav">
                <ul>
                    <li>
                        <NavLink to='/do' activeClassName="active">首页</NavLink>
                    </li>
                    <li>
                        <NavLink to="/news" activeClassName="active">关注</NavLink>
                    </li>
                    <li>
                        <NavLink to="/user" activeClassName="active">栏目</NavLink>
                    </li>
                </ul>
            </div>
        )
    }

}

export default Nav